import request from './http'


export function login(data){
    return request({
        url: '/login',
        method: 'post',
        data
    })
}


export function getEmailCode(data){
    return request({
        url: '/account/getRegisterCode',
        method: 'post',
        data
    })
}


export function checkEmailAndCode(data){
    return request({
        url: '/account/checkEmailAndCode',
        method: 'post',
        data
    })
}


export function register(data){
    return request({
        url: '/account/register',
        method: 'put',
        data
    })
}